package org.duanyu.shopping_admin_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.duanyu.shopping_common.pojo.Permission;

public interface PermissionMapper extends BaseMapper<Permission> {

    //删除角色权限表中的相关数据
    @Delete("delete from bz_role_permission where pid=#{pid}")
    void deletePermissionByUserId(Long pid);

}
